<%-- 
    Document   : AdminDivision
    Created on : Oct 14, 2013, 8:01:00 PM
    Author     : h10t93
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--<%@taglib prefix="html" uri="/ WEB-INF/struts-html.tld" %>--%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>

    </head>
    <body>
        <form name="frm" method="POST">
        <p>select staff to assignment !</p>
        <table border="1">
            <tr>
                <th>ID Staff</th>
                <th>ID Staff Name</th>
                <th>Staff Departments</th>
                <th>Priority Of Complaint</th>
            </tr>
            <c:forEach var="p" items="${sessionScope['ass']}" >
                <tr>
                    <td>${p.idStaff}</td>
                    <td>${p.name}</td>
                    <td>${p.department}</td>
                    <td>
                        <select name="pri" size="3">
                            <option>height</option>
                            <option>normal</option>
                            <option>low</option>
                        </select>
                    </td>               
                    <td><input type="submit" value="ok" onclick="frm.action='ManageServlet?action=insertWord&idStaff=${p.idStaff}'"/></td>
                </tr>
            </c:forEach>
        </table>
        </form>
    </body>
</html>
